﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gin.Commands
{
    public class ThrowException: Command
    {

        [GinArgumentText(Multiline = false, MaxLength = 500)]
        public string Message { get; set; }

        public override void Do(ExecutionContext context)
        {
            throw new Exception(Message);
        }
    }
}
